package com.ms.banner.transformer;

import ohos.agp.components.Component;

/**
 * 由于有些API在鸿蒙中没找到对应的 故此动画空实现
 * setRotationY
 *
 * @since 2021-04-12
 */
public class CubeInTransformer extends ABaseTransformer {

    @Override
    public boolean isPagingEnabled() {
        return true;
    }

    @Override
    protected void onTransform(Component component, float position) {
//        component.setPivotX(position > (float)0 ? 0.0F : (float)component.getWidth());
//        component.setPivotY(0.0F);
//        component.setRotation(-90.0F * position);
//        component.setRotationY(-90.0F * position);
    }
}
